.reschedule_container {
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.myBooking .reschedule_container .btnWrapper {
  margin-top: 0px;
}
@media (max-width: 960px) {
  .reschedule_container {
    width: 100%;
    /* height: 100%; */
    /* background-image: url(../images/myBooking_paper_bg.png); */
    background-size: cover;
    background-repeat: no-repeat;
    /* transform: rotateY(180deg); */
    margin-top: -80px;
    display: flex;
    align-items: center;
    flex-direction: column;
    /* padding-top: 150px; */
    /* padding-bottom: 250px; */
    position: relative;
  }
}

@media (max-width: 600px) {
  body.myBooking .mfp-content:has(> .RescheduleDetailPopup) {
    width: 100%;
    max-width: 358px;
  }

  body.myBooking .RescheduleDetailPopup.newTypePopup {
    box-sizing: border-box;
    width: 100%;
    height: min(680px, calc(100vh - 32px));
    height: min(680px, calc(100dvh - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    padding: 22px;
    overflow: hidden;
    border: 2px solid #f6dbb1;
    border-radius: 36px;
    background: #fbf0df;
  }

  body.myBooking .RescheduleDetailPopup .popupContent {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  body.myBooking .RescheduleDetailPopup .popupInner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 24px;
  }

  body.myBooking
    .RescheduleDetailPopup.newTypePopup:not(.cartPopup):not(.addCartPopup):not(
      .delPopup
    ):not(.delConfirmPopup):not(.cancelPopup):not(.paymentCancelledPopup)
    .popupTitle {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    line-height: 1.3;
  }

  body.myBooking .RescheduleDetailPopup .popupTitle::after {
    height: 6px;
    background-size: 100% 6px;
  }

  body.myBooking .RescheduleDetailPopup .popupDesc {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #99897b transparent;
    scrollbar-width: thin;
  }

  body.myBooking
    .RescheduleDetailPopup.newTypePopup:not(.cartPopup):not(.addCartPopup)
    .btnWrapper {
    flex: 0 0 44px;
    height: 44px;
  }

  body.myBooking
    .RescheduleDetailPopup.newTypePopup:not(.cartPopup):not(.addCartPopup)
    .ComfirmResBtn {
    height: 44px;
    min-height: 44px;
  }

  body.myBooking
    .mfp-content:has(> .RescheduleDetailPopup)
    > .mfp-close {
    top: 14px;
    right: 14px;
    z-index: 2;
  }
}

/* Calendar styles shared by the mobile and desktop layouts. */
body.myBooking .reschedule_container .calendarContainer {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: none;
  height: 405px;
  margin: 8px 0 0;
  padding: 16px 24px;
  border-radius: 36px;
  color: #1f316f;
  background: #fbf0df;
}

body.myBooking .reschedule_container .reschedulePeakTabs {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 38px;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #c6bdb5;
  border-radius: 0;
  background: transparent;
}

body.myBooking .reschedule_container .reschedulePeakTabs .reschedulePeakTab {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 1 1 50%;
  align-items: flex-start;
  justify-content: center;
  height: 38px;
  padding: 0 16px 4px;
  border: 0;
  border-radius: 0;
  color: #c6bdb5;
  background: transparent;
  font-family: Inter, "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: capitalize;
  cursor: default;
}

body.myBooking
  .reschedule_container
  .reschedulePeakTabs
  .reschedulePeakTab.active {
  color: #1f316f;
}

body.myBooking
  .reschedule_container
  .reschedulePeakTabs
  .reschedulePeakTab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #1f316f;
  content: "";
}

body.myBooking .reschedule_container .reschedule_calendar_content {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-height: 0;
  padding: 16px 0;
}

body.myBooking .reschedule_container .monthTitle {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 6px;
}

body.myBooking .reschedule_container #month {
  color: #1f316f;
  font-size: 20px;
  font-weight: 600;
}

body.myBooking .reschedule_container .calendarTable tr {
  justify-content: space-between;
  margin-bottom: 8px;
  overflow: visible;
}

body.myBooking .reschedule_container .calendarTable tr:first-child {
  margin-bottom: 16px;
}

body.myBooking
  .reschedule_container
  .calendarTable
  tr:last-child:not(:has(.day)) {
  display: none;
}

body.myBooking .reschedule_container .calendarTable td {
  box-sizing: border-box;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  color: #99897b;
  font-family: Inter, "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 35px;
}

body.myBooking
  .reschedule_container
  .calendarTable
  td.weekDays {
  height: 20px;
  color: #1f316f;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

body.myBooking .reschedule_container .calendarTable td.unavailable {
  color: rgba(126, 119, 113, 0.5);
  pointer-events: none;
}

body.myBooking .reschedule_container .day.available {
  border-radius: 50%;
  background: url("../images/2026images/reschedule-available-date.svg") center /
    32px 34px no-repeat;
  color: #99897b;
}

body.myBooking .reschedule_container .day.available:hover {
  box-shadow: 0 0 0 2px #1f316f;
}

body.myBooking .reschedule_container .day.active,
body.myBooking .reschedule_container .day.active:hover {
  border: 2px solid #1f316f;
  border-radius: 50%;
  color: #1f316f;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 961px) {
  .myBooking .reschedule_container .monthTitle a {
    position: relative;
    box-sizing: border-box;
    display: block;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #1f316f;
    border-radius: 50%;
    background: transparent;
    filter: none;
  }

  .myBooking .reschedule_container .monthTitle a::after {
    position: absolute;
    top: 12px;
    left: 11px;
    width: 9px;
    height: 9px;
    margin: 0;
    border-top: 1px solid #1f316f;
    border-right: 1px solid #1f316f;
    content: "";
    transform: rotate(45deg);
  }
}

@media (max-width: 960px) {
  body.myBooking .bookingDetail_container:has(
      > .reschedule_container:not([style*="display: none"])
    ) {
    align-items: stretch;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  body.myBooking
    .bookingDetail_container:has(
      > .reschedule_container:not([style*="display: none"])
    )::after,
  body.myBooking
    .bookingDetail_container:has(
      > .bookingDetail:not([style*="display: none"])
    )::after {
    width: 100vw;
    background-position: center bottom -34px;
    background-size: min(100%, 1400px) auto;
  }

  body.myBooking
    .bookingDetail_container:has(
      > .reschedule_container:not([style*="display: none"])
    )::before,
  body.myBooking
    .bookingDetail_container:has(
      > .bookingDetail:not([style*="display: none"])
    )::before {
    width: 100vw;
  }

  body.myBooking
    .bookingDetail_container:has(
      > .bookingDetail:not([style*="display: none"])
    ) {
    padding-bottom: calc(150px + max(0px, calc(35.4vw - 138px)));
  }

  body.myBooking .reschedule_container {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 116px 0 calc(150px + max(0px, calc(35.4vw - 138px)));
  }

  body.myBooking .reschedule_container .bookingContainer_main_step1 {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.myBooking .reschedule_container .santa_intro_container_main_title_ticket {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 112px;
    margin: 0;
    align-self: stretch;
    white-space: normal;
  }

  body.myBooking
    .reschedule_container
    .santa_intro_container_main_title_ticket
    h3 {
    box-sizing: border-box;
    position: relative;
    width: min(352.857px, calc(100vw - 37.143px));
    height: 112px;
    margin: 0 auto;
    padding: 9.83px 61.13px 0;
    background: url("../images/2026images/figma-workshop-title-shelf.png")
      center 71.67px / 100% 22.44px no-repeat;
    color: #f1c683;
    font-family: "Playfair Display", "Noto Sans TC", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 0 3.869px rgba(42, 25, 5, 0.65);
    white-space: normal;
  }

  body.myBooking
    .reschedule_container
    .santa_intro_container_main_title_ticket
    h3::before,
  body.myBooking
    .reschedule_container
    .santa_intro_container_main_title_ticket
    h3::after {
    position: absolute;
    display: block;
    background-repeat: no-repeat;
    content: "";
    pointer-events: none;
  }

  body.myBooking
    .reschedule_container
    .santa_intro_container_main_title_ticket
    h3::before {
    top: 41.56px;
    left: 0;
    width: 68.421px;
    height: 41.908px;
    background-image: url("../images/2026images/figma-workshop-title-books-left.png");
    background-position: 3.42px 0;
    background-size: 63.78px 40.34px;
  }

  body.myBooking
    .reschedule_container
    .santa_intro_container_main_title_ticket
    h3::after {
    top: 18.34px;
    right: 4.647px;
    width: 81.25px;
    height: 65px;
    background-image: url("../images/2026images/figma-workshop-title-books-right.png");
    background-position: 19.65px 0.64px;
    background-size: 60.57px 64.05px;
  }

  body.myBooking .reschedule_container .bookingContainer_main_step1_container {
    box-sizing: border-box;
    width: min(484px, calc(100% - 32px)) !important;
    max-width: 484px;
    margin: 37px auto 0;
    padding: 0 !important;
  }

  body.myBooking .reschedule_container .bookingContainer_main_step1_top {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 0;
  }

  body.myBooking
    .reschedule_container
    .bookingContainer_main_step1_top_calendarContainer,
  body.myBooking
    .reschedule_container
    .bookingContainer_main_step1_top_sessionContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    text-align: left;
  }

  body.myBooking .reschedule_container .bookingSectionTitle {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    min-height: 52px;
    margin: 0;
    color: #f1c683;
  }

  body.myBooking .reschedule_container .reschedule_calendar_content {
    min-height: 327px;
  }

  body.myBooking .reschedule_container .monthTitle a {
    flex: 0 0 36px;
    border-color: #1f316f;
    background-image: url("../images/2025images/icn_next_month.svg");
    filter: sepia(1) saturate(4) hue-rotate(175deg) brightness(0.65);
  }

  body.myBooking .reschedule_container .monthTitle a:hover,
  body.myBooking .reschedule_container .monthTitle a:focus-visible {
    border: 1px solid #1f316f;
    background-color: #f6dbb1;
  }

  body.myBooking .reschedule_container .calendarContainer .row,
  body.myBooking .reschedule_container .calendarContainer .rowContainer {
    width: 100%;
  }

  body.myBooking .reschedule_container .calendarTable {
    width: 100%;
    height: auto;
  }

  body.myBooking .reschedule_container .day.available {
    cursor: pointer;
  }

  body.myBooking .reschedule_container .day.available:focus-visible {
    box-shadow: 0 0 0 2px #1f316f;
  }

  body.myBooking .reschedule_container .session_container {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 338px;
    margin: 8px 0 0;
    padding: 24px;
    border-radius: 36px;
    background: #fbf0df;
  }

  body.myBooking .reschedule_container .session_container_timeslot {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.myBooking .reschedule_container .session_container_timeslot_container {
    display: grid;
    grid-template-columns: repeat(2, 128px);
    justify-content: center;
    width: min(282px, 100%);
    margin: 0 auto;
    padding: 0;
    gap: 20px 26px;
    list-style: none;
  }

  body.myBooking .reschedule_container .timeslot {
    min-width: 0;
    margin: 0;
    gap: 4px;
  }

  body.myBooking .reschedule_container .timeslot_option {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 36px;
    color: #1f316f;
    background: #f6dbb1;
    font-family: Inter, "Noto Sans TC", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
  }

  body.myBooking .reschedule_container .timeslot_option.active {
    color: #fcfcfc;
    background: #1f316f;
  }

  body.myBooking .reschedule_container .timeslot_option:focus-visible {
    outline: 2px solid #1f316f;
    outline-offset: 2px;
  }

  body.myBooking .reschedule_container .timeslot p {
    margin: 0;
    color: #b52207;
    font-family: Inter, "Noto Sans TC", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
  }

  body.myBooking .reschedule_container > .btnWrapper {
    box-sizing: border-box;
    width: min(484px, calc(100% - 32px));
    max-width: 484px;
    height: 44px;
    margin: 36px auto 0;
    padding: 0;
  }

  body.myBooking .reschedule_container .confirmResBtn {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 100px;
    background: var(--gold-button-background);
    box-shadow: var(--gold-button-shadow);
    color: #1f316f;
    font-family: "Playfair Display", "Noto Sans TC", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }
}
